package deepbitview

import grails.test.*
import org.junit.Test

class WalletServiceTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()


        assertFalse(WalletHandler.isConfigured())

        WalletHandler.register(System.getProperty("wallet.username"), System.getProperty("wallet.password"), System.getProperty("wallet.key"))

        assertTrue(WalletHandler.isConfigured())
    }

    protected void tearDown() {
        super.tearDown()
    }

    @Test
    void testGetBalance() {

        WalletService walletService = new WalletService()
        def result = walletService.getBalance()

        println result
    }
}
